MutableIterator

interface MutableIterator<out T> : Iterator<T>

An iterator over a mutable collection. Provides the ability to remove elements while iterating.

See also

Functions

hasNext
Link copied to clipboard
abstract operator fun hasNext(): Boolean

Returns true if the iteration has more elements.

next
Link copied to clipboard
abstract operator fun next(): T

Returns the next element in the iteration.

remove
Link copied to clipboard
abstract fun remove()

Removes from the underlying collection the last element returned by this iterator.

Inheritors

MutableListIterator
Link copied to clipboard